package com.han.neo4jjava.core.person;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class PersonCreateService {

    private final PersonRepo personRepo;

    public void save(Person person) {
        personRepo.save(person);
    }

    public void saveAll(List<Person> persons) {
        personRepo.saveAll(persons);
    }

    public void drop() {
        personRepo.drop();
    }
}
